/*
 * @Author: rogi
 * @Date: 2022-07-18 15:47:08
 * @LastEditTime: 2022-07-18 17:16:27
 * @LastEditors: rogi
 * @Description: 描述
 */
import request from "../utils/request";

/**
 * @description: 登录
 * @param {*} body
 * @return {*}
 */
export function login(body) {
  console.log('data', body)
  return request('/jeecg-boot/sys/login', {
    method: 'post',
    body
  })
}

/**
 * @description: 获取验证码图片
 * @param {*} time 时间戳 毫秒级
 * @return {*}
 */
export function getCode(time) {
  return request(`/jeecg-boot/sys/randomImage/${time}`)
}

export function getUserInfo() {
  return request(`/jeecg-boot/sys/permission/getUserPermissionByToken`)
}